package com.tjh.springbootapi.controller;

import org.springframework.web.bind.annotation.*;

import java.time.LocalDateTime;

@RestController
@RequestMapping("/filter")
public class FilterController {

    /**
     * 时间过滤器的使用
     *
     * @return
     */
    @PostMapping("/formatDate")
    public LocalDateTime formatDate() {
        return LocalDateTime.now();
    }

}
